package org.rafal.springframework.service;

import java.util.List;

import org.rafal.springframework.domain.Text;

public interface TextService {
	/**
	 * Finds all Text object
	 * 
	 * @return list of Text
	 */
	public List<Text> findAll();

	/**
	 * Find Text by subject.
	 * 
	 * @param subject
	 *            name
	 * @return Text object
	 */
	public Text findBySubject(String subject);

	/**
	 * Saves the Text to database.
	 * 
	 * @param text
	 * @return Text
	 */
	public Text save(Text text);

	/**
	 * Deletes text data from database.
	 * 
	 * @param text
	 *            object which we want to delet
	 */
	public void delete(Text text);

}
